home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hal.postrm < prev    next >
Text File  |  2009-10-05  |  616b  |  28 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5.  
  6.  
  7. if [ "$1" = "purge" ] ; then
  8.     # Tell dbus to reload it's configuration files only, when we purge the
  9.     # package, i.e. when we remove its conffiles in /etc/dbus-1/system.d/
  10.       if [ -x /etc/init.d/dbus ]; then
  11.         invoke-rc.d dbus force-reload || true
  12.       fi
  13.  
  14.     if [ -x "$(command -v deluser)" ]; then
  15.             deluser --quiet --system haldaemon > /dev/null || true
  16.     else
  17.         echo >&2 "Not removing haldaemon system account because deluser command was not found"
  18.     fi
  19.  
  20.     rm -f /var/cache/hald/fdi-cache
  21.     rmdir /var/cache/hald || true
  22.  
  23.     rm -f /var/run/hald/acl-list
  24.     rmdir /var/run/hald || true
  25. fi
  26.  
  27. exit 0
  28.